package com.cyandpos.pad.posdata;

/**
 * Created by Administrator on 2020/4/10.
 */

public class PosO2ORequest {
    private String orderno;
    private String appCode;
    private String appType;
    private String posId;
    private String receiptNo;
    private String mch_Id;
    private String totalFee;//当前交易金额  （单位：分）
    private String buyerCode;
    private String guid;
    private String personId;
    private String attach;
    private String outTradeNo;
    private String outTradeNo_Old;
    private String transactionId_Old;
    private String oldPosId;//原交易款台号（退款时必传）
    private String totalFee_Old;//原交易金额 单位：分（退款时必传）
    private String orderTime_Old;//原交易时间(格式：yyyyMMddHHmmss)
    private String payCode;//收款方式id
    private String param3;//收款方式id

    public String getParam3() {
        return param3;
    }

    public void setParam3(String param1) {
        this.param3 = param1;
    }

    public String getPayCode() {
        return payCode;
    }

    public void setPayCode(String payCode) {
        this.payCode = payCode;
    }

    /**
     * outTradeNo_Old   和  transactionId_Old 说明
     * 退款的时候，outtradeno_old传原单的outtradeno，或者TransactionId_old传原单的TransactionId。两个二选一传。
     *
     */



    public String getOrderno() {
        return orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    public String getAppCode() {
        return appCode;
    }

    public void setAppCode(String appCode) {
        this.appCode = appCode;
    }

    public String getAppType() {
        return appType;
    }

    public void setAppType(String appType) {
        this.appType = appType;
    }

    public String getPosId() {
        return posId;
    }

    public void setPosId(String posId) {
        this.posId = posId;
    }

    public String getReceiptNo() {
        return receiptNo;
    }

    public void setReceiptNo(String receiptNo) {
        this.receiptNo = receiptNo;
    }

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    public String getMch_Id() {
        return mch_Id;
    }

    public void setMch_Id(String mch_Id) {
        this.mch_Id = mch_Id;
    }

    public String getTotalFee() {
        return totalFee;
    }

    public void setTotalFee(String totalFee) {
        this.totalFee = totalFee;
    }

    public String getBuyerCode() {
        return buyerCode;
    }

    public void setBuyerCode(String buyerCode) {
        this.buyerCode = buyerCode;
    }

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    public String getAttach() {
        return attach;
    }

    public void setAttach(String attach) {
        this.attach = attach;
    }

    public String getOldPosId() {
        return oldPosId;
    }

    public void setOldPosId(String oldPosId) {
        this.oldPosId = oldPosId;
    }

    public String getTotalFee_Old() {
        return totalFee_Old;
    }

    public void setTotalFee_Old(String totalFee_Old) {
        this.totalFee_Old = totalFee_Old;
    }

    public String getTransactionId_Old() {
        return transactionId_Old;
    }

    public void setTransactionId_Old(String transactionId_Old) {
        this.transactionId_Old = transactionId_Old;
    }

    public String getOrderTime_Old() {
        return orderTime_Old;
    }

    public void setOrderTime_Old(String orderTime_Old) {
        this.orderTime_Old = orderTime_Old;
    }

    public String getOutTradeNo_Old() {
        return outTradeNo_Old;
    }

    public void setOutTradeNo_Old(String outTradeNo_Old) {
        this.outTradeNo_Old = outTradeNo_Old;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"orderno\":\"")
                .append(orderno).append('\"');
        sb.append(",\"appCode\":\"")
                .append(appCode).append('\"');
        sb.append(",\"appType\":\"")
                .append(appType).append('\"');
        sb.append(",\"posId\":\"")
                .append(posId).append('\"');
        sb.append(",\"receiptNo\":\"")
                .append(receiptNo).append('\"');
        sb.append(",\"mch_Id\":\"")
                .append(mch_Id).append('\"');
        sb.append(",\"totalFee\":\"")
                .append(totalFee).append('\"');
        sb.append(",\"buyerCode\":\"")
                .append(buyerCode).append('\"');
        sb.append(",\"guid\":\"")
                .append(guid).append('\"');
        sb.append(",\"personId\":\"")
                .append(personId).append('\"');
        sb.append(",\"attach\":\"")
                .append(attach).append('\"');
        sb.append(",\"outTradeNo\":\"")
                .append(outTradeNo).append('\"');
        sb.append(",\"outTradeNo_Old\":\"")
                .append(outTradeNo_Old).append('\"');
        sb.append(",\"transactionId_Old\":\"")
                .append(transactionId_Old).append('\"');
        sb.append(",\"oldPosId\":\"")
                .append(oldPosId).append('\"');
        sb.append(",\"totalFee_Old\":\"")
                .append(totalFee_Old).append('\"');
        sb.append(",\"orderTime_Old\":\"")
                .append(orderTime_Old).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
